<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


    <script>

        // var num = 18;
        // num = 20;

        // var str = "ls";


        // 在JS中中括号代表数组,  {}代表对象
        // var  array = [  "zs", 1,  true,  [],  {}]
        var  array = [  "zs","ls","wu", "zl"];


        // array[0] = "aa";
        // array[40] = "aa";

        array["aa"] = "aa"

        console.log(array)
        console.log(array.length)


        for (var i = 0; i < array.length; i++) {
            console.log(array[i])
        }





    </script>
</body>
</html>
